package com.wzy.vx.service;

import com.wzy.vx.DTO.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @ProjectName: vx
 * @Package: com.wzy.vx.service
 * @ClassName: OrderService
 * @Author: Administrator
 * @Description: d订单
 * @Date: 2019/3/12 18:22
 * @Version: 1.0
 */
public interface OrderService {
    //1.创建订单
    OrderDTO create(OrderDTO orderDTO);
    //2.查询单个订单
    OrderDTO findOrder(String orderId);
    //3.查询订单列表
    Page<OrderDTO> findList(String buyerOpenid, Pageable pageable);
    //4.取消
    OrderDTO cannel(OrderDTO orderDTO);
    //5.完结
    OrderDTO finish(OrderDTO orderDTO);
    //6.支付
    OrderDTO paid(OrderDTO orderDTO);

    //7.查询所有订单列表
    Page<OrderDTO> findAllList( Pageable pageable);

}
